Integrand size = 13, antiderivative size = 81 \[ \int \frac {\csc ^6(x)}{a+b \cot (x)} \, dx=\frac {a \left (a^2+2 b^2\right ) \cot (x)}{b^4}-\frac {\left (a^2+2 b^2\right ) \cot ^2(x)}{2 b^3}+\frac {a \cot ^3(x)}{3 b^2}-\frac {\cot ^4(x)}{4 b}-\frac {\left (a^2+b^2\right )^2 \log (a+b \cot (x))}{b^5} \]
[Out]
Time = 0.13 (sec) , antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3587, 711} \[ \int \frac {\csc ^6(x)}{a+b \cot (x)} \, dx=-\frac {\left (a^2+b^2\right )^2 \log (a+b \cot (x))}{b^5}+\frac {a \left (a^2+2 b^2\right ) \cot (x)}{b^4}-\frac {\left (a^2+2 b^2\right ) \cot ^2(x)}{2 b^3}+\frac {a \cot ^3(x)}{3 b^2}-\frac {\cot ^4(x)}{4 b} \]
[In]
[Out]
Rule 711
Rule 3587
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {\left (1+\frac {x^2}{b^2}\right )^2}{a+x} \, dx,x,b \cot (x)\right )}{b} \\ & = -\frac {\text {Subst}\left (\int \left (\frac {a \left (-a^2-2 b^2\right )}{b^4}+\frac {\left (a^2+2 b^2\right ) x}{b^4}-\frac {a x^2}{b^4}+\frac {x^3}{b^4}+\frac {\left (a^2+b^2\right )^2}{b^4 (a+x)}\right ) \, dx,x,b \cot (x)\right )}{b} \\ & = \frac {a \left (a^2+2 b^2\right ) \cot (x)}{b^4}-\frac {\left (a^2+2 b^2\right ) \cot ^2(x)}{2 b^3}+\frac {a \cot ^3(x)}{3 b^2}-\frac {\cot ^4(x)}{4 b}-\frac {\left (a^2+b^2\right )^2 \log (a+b \cot (x))}{b^5} \\ \end{align*}
Time = 1.77 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.05 \[ \int \frac {\csc ^6(x)}{a+b \cot (x)} \, dx=\frac {-6 b^2 \left (a^2+b^2\right ) \csc ^2(x)-3 b^4 \csc ^4(x)+4 a b \cot (x) \left (3 a^2+5 b^2+b^2 \csc ^2(x)\right )+12 \left (a^2+b^2\right )^2 (\log (\sin (x))-\log (b \cos (x)+a \sin (x)))}{12 b^5} \]
[In]
[Out]
Time = 2.68 (sec) , antiderivative size = 106, normalized size of antiderivative = 1.31
method | result | size |
default | \(-\frac {1}{4 b \tan \left (x \right )^{4}}-\frac {a^{2}+2 b^{2}}{2 b^{3} \tan \left (x \right )^{2}}+\frac {\left (a^{4}+2 a^{2} b^{2}+b^{4}\right ) \ln \left (\tan \left (x \right )\right )}{b^{5}}+\frac {a}{3 b^{2} \tan \left (x \right )^{3}}+\frac {\left (a^{2}+2 b^{2}\right ) a}{b^{4} \tan \left (x \right )}-\frac {\left (a^{4}+2 a^{2} b^{2}+b^{4}\right ) \ln \left (\tan \left (x \right ) a +b \right )}{b^{5}}\) | \(106\) |
risch | \(\frac {2 i a^{3} {\mathrm e}^{6 i x}+2 i a \,b^{2} {\mathrm e}^{6 i x}+2 a^{2} b \,{\mathrm e}^{6 i x}+2 b^{3} {\mathrm e}^{6 i x}-6 i a^{3} {\mathrm e}^{4 i x}-10 i a \,b^{2} {\mathrm e}^{4 i x}-4 a^{2} b \,{\mathrm e}^{4 i x}-8 b^{3} {\mathrm e}^{4 i x}+6 i a^{3} {\mathrm e}^{2 i x}+\frac {34 i a \,b^{2} {\mathrm e}^{2 i x}}{3}+2 a^{2} b \,{\mathrm e}^{2 i x}+2 b^{3} {\mathrm e}^{2 i x}-2 i a^{3}-\frac {10 i a \,b^{2}}{3}}{b^{4} \left ({\mathrm e}^{2 i x}-1\right )^{4}}+\frac {\ln \left ({\mathrm e}^{2 i x}-1\right ) a^{4}}{b^{5}}+\frac {2 \ln \left ({\mathrm e}^{2 i x}-1\right ) a^{2}}{b^{3}}+\frac {\ln \left ({\mathrm e}^{2 i x}-1\right )}{b}-\frac {\ln \left ({\mathrm e}^{2 i x}+\frac {i b -a}{i b +a}\right ) a^{4}}{b^{5}}-\frac {2 \ln \left ({\mathrm e}^{2 i x}+\frac {i b -a}{i b +a}\right ) a^{2}}{b^{3}}-\frac {\ln \left ({\mathrm e}^{2 i x}+\frac {i b -a}{i b +a}\right )}{b}\) | \(298\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 248 vs. \(2 (75) = 150\).
Time = 0.30 (sec) , antiderivative size = 248, normalized size of antiderivative = 3.06 \[ \int \frac {\csc ^6(x)}{a+b \cot (x)} \, dx=-\frac {6 \, a^{2} b^{2} + 9 \, b^{4} - 6 \, {\left (a^{2} b^{2} + b^{4}\right )} \cos \left (x\right )^{2} + 6 \, {\left ({\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} \cos \left (x\right )^{4} + a^{4} + 2 \, a^{2} b^{2} + b^{4} - 2 \, {\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} \cos \left (x\right )^{2}\right )} \log \left (2 \, a b \cos \left (x\right ) \sin \left (x\right ) - {\left (a^{2} - b^{2}\right )} \cos \left (x\right )^{2} + a^{2}\right ) - 6 \, {\left ({\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} \cos \left (x\right )^{4} + a^{4} + 2 \, a^{2} b^{2} + b^{4} - 2 \, {\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} \cos \left (x\right )^{2}\right )} \log \left (-\frac {1}{4} \, \cos \left (x\right )^{2} + \frac {1}{4}\right ) + 4 \, {\left ({\left (3 \, a^{3} b + 5 \, a b^{3}\right )} \cos \left (x\right )^{3} - 3 \, {\left (a^{3} b + 2 \, a b^{3}\right )} \cos \left (x\right )\right )} \sin \left (x\right )}{12 \, {\left (b^{5} \cos \left (x\right )^{4} - 2 \, b^{5} \cos \left (x\right )^{2} + b^{5}\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {\csc ^6(x)}{a+b \cot (x)} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 106, normalized size of antiderivative = 1.31 \[ \int \frac {\csc ^6(x)}{a+b \cot (x)} \, dx=-\frac {{\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} \log \left (a \tan \left (x\right ) + b\right )}{b^{5}} + \frac {{\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} \log \left (\tan \left (x\right )\right )}{b^{5}} + \frac {4 \, a b^{2} \tan \left (x\right ) + 12 \, {\left (a^{3} + 2 \, a b^{2}\right )} \tan \left (x\right )^{3} - 3 \, b^{3} - 6 \, {\left (a^{2} b + 2 \, b^{3}\right )} \tan \left (x\right )^{2}}{12 \, b^{4} \tan \left (x\right )^{4}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 151 vs. \(2 (75) = 150\).
Time = 0.27 (sec) , antiderivative size = 151, normalized size of antiderivative = 1.86 \[ \int \frac {\csc ^6(x)}{a+b \cot (x)} \, dx=\frac {{\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} \log \left ({\left | \tan \left (x\right ) \right |}\right )}{b^{5}} - \frac {{\left (a^{5} + 2 \, a^{3} b^{2} + a b^{4}\right )} \log \left ({\left | a \tan \left (x\right ) + b \right |}\right )}{a b^{5}} - \frac {25 \, a^{4} \tan \left (x\right )^{4} + 50 \, a^{2} b^{2} \tan \left (x\right )^{4} + 25 \, b^{4} \tan \left (x\right )^{4} - 12 \, a^{3} b \tan \left (x\right )^{3} - 24 \, a b^{3} \tan \left (x\right )^{3} + 6 \, a^{2} b^{2} \tan \left (x\right )^{2} + 12 \, b^{4} \tan \left (x\right )^{2} - 4 \, a b^{3} \tan \left (x\right ) + 3 \, b^{4}}{12 \, b^{5} \tan \left (x\right )^{4}} \]
[In]
[Out]
Time = 12.95 (sec) , antiderivative size = 110, normalized size of antiderivative = 1.36 \[ \int \frac {\csc ^6(x)}{a+b \cot (x)} \, dx=-\frac {\frac {1}{4\,b}-\frac {a\,\mathrm {tan}\left (x\right )}{3\,b^2}+\frac {{\mathrm {tan}\left (x\right )}^2\,\left (a^2+2\,b^2\right )}{2\,b^3}-\frac {a\,{\mathrm {tan}\left (x\right )}^3\,\left (a^2+2\,b^2\right )}{b^4}}{{\mathrm {tan}\left (x\right )}^4}-\frac {2\,\mathrm {atanh}\left (\frac {\left (b+2\,a\,\mathrm {tan}\left (x\right )\right )\,{\left (a^2+b^2\right )}^2}{b\,\left (a^4+2\,a^2\,b^2+b^4\right )}\right )\,{\left (a^2+b^2\right )}^2}{b^5} \]
[In]
[Out]